$OpenBSD: patch-libavutil_random_seed_c,v 1.3 2017/02/09 12:58:03 ajacoutot Exp $

lavu/random_seed: use arc4random() when available

--- libavutil/random_seed.c.orig	Wed Feb  8 23:27:16 2017
+++ libavutil/random_seed.c	Wed Feb  8 23:34:27 2017
@@ -128,6 +128,10 @@ uint32_t av_get_random_seed(void)
     }
 #endif
 
+#if HAVE_ARC4RANDOM
+    return arc4random();
+#endif
+
     if (read_random(&seed, "/dev/urandom") == sizeof(seed))
         return seed;
     if (read_random(&seed, "/dev/random")  == sizeof(seed))
